
export class ColumnInfo {
  name: string; // 列名称
  type: string; // 列类型
  length?: number;  // 列长度
  nullable?: boolean; // 是否空
  primary?: boolean;  // 主键
  autoincrement?: boolean;  // 自增

  constructor(name: string, type: string, length?: number, nullable?: boolean, primary?: boolean, autoincrement?: boolean) {
    this.name = name;
    this.type = type;
    this.length = length;
    this.nullable = nullable;
    this.primary = primary;
    this.autoincrement = autoincrement;
  }
}